package com.zxhhyj.ui.theme

import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.compositionLocalOf


val LocalColorScheme =
    compositionLocalOf<com.zxhhyj.ui.theme.StarColorScheme> { throw RuntimeException() }

val LocalTextStyles = compositionLocalOf<com.zxhhyj.ui.theme.StarTextStyles> { throw RuntimeException() }

val LocalDimens = compositionLocalOf<com.zxhhyj.ui.theme.StarDimens> { throw RuntimeException() }

@Composable
fun StarTheme(
    colorScheme: com.zxhhyj.ui.theme.StarColorScheme,
    textStyles: com.zxhhyj.ui.theme.StarTextStyles,
    dimens: com.zxhhyj.ui.theme.StarDimens,
    content: @Composable () -> Unit
) {
    CompositionLocalProvider(
        _root_ide_package_.com.zxhhyj.ui.theme.LocalColorScheme provides colorScheme,
        _root_ide_package_.com.zxhhyj.ui.theme.LocalTextStyles provides textStyles,
        _root_ide_package_.com.zxhhyj.ui.theme.LocalDimens provides dimens
    ) {
        content()
    }
}